package com.emex.app.shared.ws;

import com.emex.app.shared.data.Cros;
import com.emex.app.shared.data.Position;
import java.util.List;
import javax.jws.WebMethod;
import javax.jws.WebService;

/**
 *
 * @author Sergey Karavaev
 */
@WebService(targetNamespace = "http://emex.com/Shop")
public interface ShopWebService {

    @WebMethod
    public int deletePosition(Integer id);

    @WebMethod
    public Position insertPosition(Position record);

    @WebMethod
    public Position getPositionById(Integer id);

    @WebMethod
    public Position updatePosition(Position record);

    @WebMethod
    public int deleteCros(Integer id);

    @WebMethod
    public Cros insertCros(Cros record);

    @WebMethod
    public Cros getCrosById(Integer id);

    @WebMethod
    public Cros updateCros(Cros record);

    @WebMethod
    public List<Position> getPositionByCode(String code);

    @WebMethod
    public List<Position> getCrossPositionsByPositionId(Integer id);

    @WebMethod
    public List<Position> getAllPosition();

    @WebMethod
    public void deleteCrosByPositions(Position p1, Position p2);

    @WebMethod
    public List<Position> getPositionsToBuy();
}
